import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    itemTypeId: null,//项目分类编号
    deptid: null,//部门id
    departmentSwitching: false,//选择部门时显示不同组件
    curryear: null,//年份

  },
  getters: {
  },
  mutations: {
    changeItem(state, data) {
      state.itemTypeId = data
    },
    changeDeptId(state, data) {
      state.deptid = data
    },
    changeSwitching(state, data) {
      state.departmentSwitching = data
    },
    changeCurryears(state, data) {
      state.curryear = data
    }
  },
  actions: {
  },
  modules: {
  }

})
